package com.cctv.video.adapter;

import com.cctv.video.ResourceTable;
import com.cctv.video.base.adapter.ItemViewHolder;
import com.cctv.video.base.adapter.RecycleItemProviderAdapter;
import ohos.app.Context;

import java.util.List;

public class SampleItemProvider extends RecycleItemProviderAdapter<String> {

    public SampleItemProvider(Context context, List<String> datas, int layoutId) {
        super(context, datas, layoutId);
    }

    @Override
    public void convert(ItemViewHolder holder, String sampleItem) {
        holder.setText(ResourceTable.Id_item_index, sampleItem);
    }
}
